<script setup lang='ts'>
import { formatTime } from '@/utils'
import { useRoute } from 'vue-router'
const route = useRoute()

let arr = [
  {
    name: '规格1',
    value: [ '1','11' ]
  },
  {
    name: '规格2',
    value: [ '2', '22' ]
  },
  {
    name: '规格3',
    value: [ '3', '33' ]
  }
]

const getTableData = () => {
  let tableData = []
  arr.forEach(item => {

  })
}
</script>

<template>
  <div>
    <div>测试页面Test2</div>
    <div><span>当前路由：</span><span style="font-weight: 600;font-size: 14px;">{{ route.path }}</span></div>
    <div><span>测试utils，当前时间：</span><span>{{ formatTime(new Date().toISOString()) }}</span></div>
    <el-button
      v-has="'/test/add'"
      type="primary"
    >
      测试添加按钮权限
    </el-button>
    <el-button
      v-has="'/test/edit'"
      type="primary"
    >
      测试编辑按钮权限
    </el-button>
  </div>
</template>
